<script>
	export default {
		onLaunch: function() {
			console.log('App Launch')
			var script = document.createElement('script');
			script.src = "https://res.wx.qq.com/open/js/jweixin-1.3.2.js";
			document.head.appendChild(script);
			// 移除本地身份缓存 
			try {
				// uni.removeStorageSync('czwyst_group_app_xzq');
				uni.removeStorageSync('tax_group_app_token');
				uni.removeStorageSync('DZSWJ_TGC');
			} catch (e) {
				console.log(e)
			}
			// 强制禁止关怀模式修改页面字体大小
			if (typeof WeixinJSBridge == "object" && typeof WeixinJSBridge.invoke == "function") {
				handleFontSize();
			} else {
				if (document.addEventListener) {
					document.addEventListener("WeixinJSBridgeReady", handleFontSize, false);
				} else if (document.attachEvent) {
					document.attachEvent("WeixinJSBridgeReady", handleFontSize);
					document.attachEvent("onWeixinJSBridgeReady", handleFontSize);
				}
			}

			function handleFontSize() {
				// 设置网页字体为默认大小
				WeixinJSBridge.invoke('setFontSizeCallback', {
					'fontSize': 0
				});
				// 重写设置网页字体大小的事件
				WeixinJSBridge.on('menu:setfont', function() {
					WeixinJSBridge.invoke('setFontSizeCallback', {
						'fontSize': 0
					});
				});
			}
		},
		onShow: function() {},
		onHide: function() {
			console.log('App Hide')
		},
	}
</script>

<style>
	/*每个页面公共css */
	@import "~@/static/fonts/iconfont.css";
	@import "~@/static/css/index.css";
	page {
		background-color: #f8f8f8;
		/* background-color: #0000001c; */
		font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
	}

	::v-deep uni-modal .uni-modal__ft {
		justify-content: space-around;
		flex-flow: row-reverse;
	}

	.qrk ::v-deep.uni-modal__ft {
		display: -webkit-box !important;
		display: inline-block;
	}

	.qrk .uni-modal__btn_primary {
		float: right;
	}

	.qrk .uni-modal__btn_default {
		float: left;
	}
</style>